package cn.net.yugu.doraemon.event.handler;

import cn.net.yugu.doraemon.api.common.event.EventHandler;
import cn.net.yugu.doraemon.event.DefaultEvent;
import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;

/**
 * @author xiangzhurui
 * @version 2022/11/9 13:16:39
 */
@Slf4j
public class DefaultEventHandler implements EventHandler {

    @Subscribe
    public void handDefaultEvent(DefaultEvent event) {
        log.info("event id{} time {} data {}", event.eventId(), event.getEventTime(), event.getData());
    }
}
